<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>队列配置</title>
    {template 'stourtravel/public/public_min_js'}
    {php echo Common::getCss('style.css,base.css,base_new.css'); }
    {php echo Common::getScript('config.js');}
    {php echo Common::getScript("uploadify/jquery.uploadify.min.js"); }
    {php echo Common::getCss('uploadify.css','js/uploadify/'); }
</head>
<body left_script=2uG0mD >
<table class="content-tab">
    <tr>
        <td width="119px" class="content-lt-td" valign="top">
            {template 'stourtravel/public/leftnav'}
            <!--右侧内容区-->
        </td>
        <td valign="top" class="content-rt-td">
            <form id="configfrm">
                <div class="w-set-con">
                    <div class="cfg-header-bar">
                        <a href="javascript:;" class="fr btn btn-primary radius mt-6 mr-10"
                           onclick="window.location.reload()">刷新</a>
                    </div>
                    <div class="w-set-nr">
                        <ul class="info-item-block">
                            <li class="">
                                <span class="item-hd">队列开关：{Common::get_help_icon('cfg_queue_status')}</span>
                                <div class="item-bd">
                                    <label class="radio-label mr-10"><input type="radio" name="cfg_queue_status" {if $config['cfg_queue_status']==1}checked="checked"{/if} value="1">开启</label>
                                    <label class="radio-label ml-10"><input type="radio" name="cfg_queue_status" {if $config['cfg_queue_status']!=1}checked="checked"{/if} value="0">关闭</label>
                                </div>
                            </li>
                            <li class="">
                                <span class="item-hd">说明：</span>
                                <div class="item-bd">
                                    <span class="item-text va-t c-999 ml-20">*开启：队列需要手动配置队列的相关参数及配置启动WORKER服务,建议有技术能力的人员配置好相关参数和确认WORKER启动成功后再开启</span>
                                </div>
                            </li>
                        </ul>
                        <div class="clear clearfix mt-5">
                            <a class="btn btn-primary size-L radius ml-115" href="javascript:;" id="btn_save">保存</a>
                        </div>
                    </div>
                </div>
            </form>
        </td>
    </tr>
</table>
<script>
    $(function(){
        $('#btn_save').click(function(){
            Config.saveConfig(0);
        });
    })
</script>
</body>
</html>
